package com.ruixing.newcourt.utils;

import android.content.Context;
import android.graphics.drawable.Drawable;

import com.ruixing.newcourt.R;

/**
 * Created by LuoZhihao on 2018/11/14.
 */
public class Content {

    public static Drawable getWeatherImageByCode(String i , Context context){
        switch (Integer.parseInt(i)) {
            case 0:
                return context.getResources().getDrawable(R.drawable.court0);
            case 1:
                return context.getResources().getDrawable(R.drawable.court1);
            case 2:
                return context.getResources().getDrawable(R.drawable.court2);
            case 3:
                return context.getResources().getDrawable(R.drawable.court3);
            case 4:
                return context.getResources().getDrawable(R.drawable.court4);
            case 5:
                return context.getResources().getDrawable(R.drawable.court5);
            case 6:
                return context.getResources().getDrawable(R.drawable.court6);
            case 7:
                return context.getResources().getDrawable(R.drawable.court7);
            case 8:
                return context.getResources().getDrawable(R.drawable.court8);
            case 9:
                return context.getResources().getDrawable(R.drawable.court9);
            case 10:
                return context.getResources().getDrawable(R.drawable.court10);
            case 11:
                return context.getResources().getDrawable(R.drawable.court11);
            case 12:
                return context.getResources().getDrawable(R.drawable.court12);
            case 13:
                return context.getResources().getDrawable(R.drawable.court13);
            case 14:
                return context.getResources().getDrawable(R.drawable.court14);
            case 15:
                return context.getResources().getDrawable(R.drawable.court15);
            case 16:
                return context.getResources().getDrawable(R.drawable.court16);
            case 17:
                return context.getResources().getDrawable(R.drawable.court17);
            case 18:
                return context.getResources().getDrawable(R.drawable.court18);
            case 19:
                return context.getResources().getDrawable(R.drawable.court19);
            case 20:
                return context.getResources().getDrawable(R.drawable.court20);
            case 21:
                return context.getResources().getDrawable(R.drawable.court21);
            case 22:
                return context.getResources().getDrawable(R.drawable.court22);
            case 23:
                return context.getResources().getDrawable(R.drawable.court23);
            case 24:
                return context.getResources().getDrawable(R.drawable.court24);
            case 25:
                return context.getResources().getDrawable(R.drawable.court25);
            case 26:
                return context.getResources().getDrawable(R.drawable.court26);
            case 27:
                return context.getResources().getDrawable(R.drawable.court27);
            case 28:
                return context.getResources().getDrawable(R.drawable.court28);
            case 29:
                return context.getResources().getDrawable(R.drawable.court29);
            case 30:
                return context.getResources().getDrawable(R.drawable.court30);
            case 31:
                return context.getResources().getDrawable(R.drawable.court31);
            case 32:
                return context.getResources().getDrawable(R.drawable.court32);
            case 33:
                return context.getResources().getDrawable(R.drawable.court33);
            case 34:
                return context.getResources().getDrawable(R.drawable.court34);
            case 35:
                return context.getResources().getDrawable(R.drawable.court35);
            case 36:
                return context.getResources().getDrawable(R.drawable.court36);
            case 37:
                return context.getResources().getDrawable(R.drawable.court37);
            case 38:
                return context.getResources().getDrawable(R.drawable.court38);
            case 99:
                return context.getResources().getDrawable(R.drawable.court99);
        }
        return null;
    }


}
